﻿target_link_libraries(${DEVICE_NAME} dl pthread rt)
# 设置RPATH
set_target_properties(${DEVICE_NAME} PROPERTIES BUILD_RPATH "./;./libs")

if (${SUPPORT_CUDA_GPUS})
    set_source_files_properties(${SRC_FILES} PROPERTIES LANGUAGE CUDA)
    set_target_properties(${DEVICE_NAME} PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
endif ()

if (${SUPPORT_SKYDDS})
    target_link_libraries(${DEVICE_NAME} ${DDS_LIBRARY_NAME})
endif ()